    <!-- colum right -->
<div class="middle myclear">
	<div class="pad10">
		<!-- bread crumb -->
		<p id="bread-crumb">
			<a href="<?php echo site_url('campaign')?>">
				<?php echo $bannerdetail_lang['allCampaign']?>
			</a>
			
			<a href="<?php echo site_url('campaigndetail/index?campaignid='.$info[0]['campaignid'].'&fromdate='.$fromdate.'&todate='.$todate);?>">
				<?php echo $bannerdetail_lang['campaign']?>: <?php echo $info[0]['campaignname'];?>
			</a>
			<a href="<?php echo site_url('bannerdetail/index?bannerid='.$info[0]['bannerid'].'&fromdate='.$fromdate.'&todate='.$todate);?>">
                <?php echo strip_tags($info[0]['bannername']);?>
            </a>
		</p><!-- end bread crumb -->
		
		<table class="martop5 marbottom10" width="100%" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td class="mbdetail-title padbottom5">
					<span class="text-999"><?php echo $bannerdetail_lang['ad']?>: </span> <span class="text-666"><?php echo strip_tags($info[0]['bannername']);?></span>
				</td>
			</tr>
		</table>
			
		<div class="mbdetail-box myclear">			
			<!-- thong ke -->
			<div class="myclear">			
				<!-- mbd-300 -->
				<div class="mbd-300">		
					<div class="mbd-breview">
						<p class="bold">
							<?php echo $info[0]['bannername'];?>
						</p>
						
						<p class="breview-box-domain">
							<?php echo $this->mycommon->getDomainFromUrl($info[0]['url']);?>
						</p>
						
						<div class="myclear padtop5">
							<p class="breview-box-img">
								<img alt="" src="<?php echo $info[0]['filepath'];?>" />
							</p>
							<div class="breview-box-bodytext">
								<?php echo $info[0]['description'];?>
							</div>
							<!-- important. fix for ie 6. Don't remove -->
							<!--[if IE 6]><br class="clearboth" /><![endif]-->
						</div>
					</div>									
				</div> <!-- end .mbd-300 -->
				
				<!-- important. fix for ie 6. Don't remove -->
				<!--[if IE 6]><br class="clearboth" /><![endif]-->
			</div>
			<!-- end thong ke -->
            <div class="text-center url-title white pad5">
                <?php echo $bannerdetail_lang['url']?> <?php echo $totalurl;?> URL
            </div>
            <div id="table">
                <div>
                    <table class="tbl-list" width="100%" cellpadding="0" cellspacing="0" border="1">
                        <thead>
        					<tr>
        						<th class="td-label bold text-center" width="41">
        							Stt
        						</th>
        						
        						<th class="td-label bold ">
        							URL
        						</th>
        					</tr>
    					</thead>
                        
                        <tbody> 
                        <?php $index=1+($page-1)*$numrow; 
                        foreach($url as $temp)
                        {
                            $bgcolor = ($index%2==0)?'#efefef':'#ffffff';
                        ?>
        					<tr style="background-color:<?php echo $bgcolor;?>;">
        						<td class="ver-middle text-center">
        							<p class="db-list-cl-stt" style="width: auto;">
        								<?php echo $index;?>
        							</p>
        						</td>
        						
        						<td class="ver-middle">
        							<p style="margin: 5px 8px;overflow: hidden;width: 682px;">
                                        <a target="_blank" href="<?php echo site_url('bannerdetail/urltracking?zoneid='.$temp['zoneid'].'&domain='.$this->mycommon->getDomainFromUrl($temp['url']).'&bannerid='.$bannerid.'&url='.$temp['url']);?>"><?php echo $temp['url'];?></a>
        							</p>
        						</td>
        					</tr>
                        <?php
                            $index++;
                        }
                        ?>
                        </tbody>	
    				</table>
                </div>
                <div id="pager" style="font-family: tahoma;border: solid 1px #D6D6D6;width: 190px;float: right; margin-top: 10px;background-color: white;padding:3px 10px 3px 10px">
                	<form>
                        <span style="vertical-align: middle;"><?php echo $bannerdetail_lang['page'];?></span>
                        <input type="text" class="pagedisplay" size="5" style="border:0;vertical-align: middle;" value="<?php echo $page.'/'.$totalpage;?>"/>
                		<img src="/images/imgpre.gif" class="prev" id="prev" style="vertical-align: middle;" <?php echo ($page>1)? 'onclick="prev_page();"':'';?>/>
                		<img src="/images/imgnext.gif" class="next" id="next" style="vertical-align: middle;" <?php echo ($page<$totalpage)? 'onclick="next_page();"':'';?>/>
                		<select class="pagesize" style="vertical-align: middle;border: 0 none;background: #fff;" id="pagesize" onchange="pagesize1()">
                			<option value="20" <?php echo ($numrow==20) ? 'selected="selected"':'' ;?>>20</option>
                			<option value="30" <?php echo ($numrow==30) ? 'selected="selected"':'' ;?>>30</option>
                			<option value="40" <?php echo ($numrow==40) ? 'selected="selected"':'' ;?>>40</option>
                		</select>
                	</form>
                </div>
            </div>
		</div><!-- end .mbdetail-box -->
		
		<br /><br /><br /><br /><br />
		<p class="text-right pad10">
			<img class="cursor-pointer" alt="" src="/images/top.gif" onclick="window.scrollTo(0,0); return false;"/>
		</p>
	</div> <!-- end colum right -->
    <img alt="" src="/images/ajax-loader.gif" id="imgLoadingPopup" style="display: none;" />
    <div class="ajaxLoadingPopupBackground" id="ajaxLoadingPopupBackground"></div>
</div> <!-- end page content -->
<script type="text/javascript">
    function next_page()
    {
        if(<?php echo $page?> >= <?php echo $totalpage?>)
        {
            var page =<?php echo $totalpage;?>;
        }else{
            var page = <?php echo $page?>+1; 
        }
        var numrow = $('#pagesize').val();
        var strURL="<?php echo site_url('bannerdetail/ajax_trackBanner?bannerid='.$bannerid);?>&page="+page+'&numrow='+numrow;
        var success = function(data)
        {
        	$('#table').html(data);
        };
    	getAjax(strURL,"",'', '', '', false, success);
    }
    
    function prev_page()
    {
        if(<?php echo $page?>==1)
        {
            var page =1;
        }else{
            var page = <?php echo $page?>-1; 
        }
        var numrow = $('#pagesize').val();
        var strURL="<?php echo site_url('bannerdetail/ajax_trackBanner?bannerid='.$bannerid);?>&page="+page+'&numrow='+numrow;
        var success = function(data)
        {
        	$('#table').html(data);
        };
    	getAjax(strURL,"",'', '', '', false, success);
    }
    function pagesize1()
    {
        var numrow = $('#pagesize').val();
        var strURL="<?php echo site_url('bannerdetail/ajax_trackBanner?bannerid='.$bannerid);?>&page=1&numrow="+numrow;
        var success = function(data)
        {
        	$('#table').html(data);
        };
    	getAjax(strURL,"",'', '', '', false, success);
    }
    
    $(function() {
        $("#top")
            .mouseover(function() { 
                document.getElementById("top").src = "/images/top.gif";
            })
            .mouseout(function() {
                document.getElementById("top").src = "/images/backtotop.gif";
            });
        $(".next")
            .mouseover(function() { 
                document.getElementById("next").src = "/images/imgnext_hover.gif";
            })
            .mouseout(function() {
                document.getElementById("next").src = "/images/imgnext.gif";   
            });
        $(".prev")
            .mouseover(function() { 
                document.getElementById("prev").src = "/images/imgpre_hover.gif";
            })
            .mouseout(function() {
                document.getElementById("prev").src = "/images/imgpre.gif";
            });
    });
    var int=self.setInterval("clock()",30000);
    function clock()
    {
        loadAjaxLoadingPopup('#imgLoadingPopup','#ajaxLoadingPopupBackground');
        var strURL="<?php echo site_url('bannerdetail/ajax_trackBanner?bannerid='.$bannerid);?>";
        var success = function(data)
        {
        	$('#table').html(data);
            disableAjaxLoadingPopup('#imgLoadingPopup','#ajaxLoadingPopupBackground');
        };
    	getAjax(strURL,"",'', '', '', false, success);
    }
</script>
